package com.sen.organization.service;

import com.sen.common.common.response.PageVo;
import com.sen.organization.dto.MemberDepartmentDTO;
import com.sen.organization.vo.MemberDepartmentVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.Set;


public interface DepartmentService {

     Set<MemberDepartmentVo> listDepartTree(String entityCode);

     /**
      * 新增
      * @param
      * @return
      */
     @Transactional(rollbackFor = RuntimeException.class)
     boolean addDepartment(MemberDepartmentDTO departmentDto);

     PageVo<MemberDepartmentVo> list(MemberDepartmentDTO departmentSearchDTO);

     /**
      * 删除部门信息
      * @param departmentCode
      * @return
      */
     void del(String departmentCode) ;


     /**
      * 查询人员信息
      * @param code
      * @return
      */
     MemberDepartmentVo getMemberDepartment(String code) ;
}
